package com.hsc.yalebao.weight;

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface.OnDismissListener;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ChongzhitishiDialog extends Dialog
  implements View.OnClickListener
{
  public Button btn_confirm;
  private MyDialogListener cancleListener = null;
  private Context context;
  private MyDialogListener defaultListener = null;
  private LinearLayout lin_0;
  private LinearLayout lin_1;
  private LinearLayout lin_2;
  private LinearLayout lin_3;
  private LinearLayout ll_chongzhi_tishi;
  private MyDialogListener okListener = null;
  public TextView tv_tishi;
  public TextView tv_title;

  public ChongzhitishiDialog(Context paramContext)
  {
    super(paramContext);
    this.context = paramContext;
    initDialog();
  }

  public ChongzhitishiDialog(Context paramContext, int paramInt)
  {
    super(paramContext, paramInt);
    this.context = paramContext;
    initDialog();
  }

  protected void initDialog()
  {
    requestWindowFeature(1);
    getWindow().setContentView(2130903112);
    setCanceledOnTouchOutside(false);
    getWindow().getDecorView().getBackground().setAlpha(0);
    this.tv_title = ((TextView)findViewById(2131099849));
    this.tv_tishi = ((TextView)findViewById(2131100053));
    this.ll_chongzhi_tishi = ((LinearLayout)findViewById(2131100050));
    this.ll_chongzhi_tishi.setOnTouchListener(new View.OnTouchListener()
    {
      public boolean onTouch(View paramAnonymousView, MotionEvent paramAnonymousMotionEvent)
      {
        ChongzhitishiDialog.this.dismiss();
        return false;
      }
    });
    this.lin_0 = ((LinearLayout)findViewById(2131099895));
    this.lin_1 = ((LinearLayout)findViewById(2131099898));
    this.lin_2 = ((LinearLayout)findViewById(2131099901));
    this.lin_3 = ((LinearLayout)findViewById(2131099906));
    this.lin_0.setOnClickListener(this);
    this.lin_1.setOnClickListener(this);
    this.lin_2.setOnClickListener(this);
    this.lin_3.setOnClickListener(this);
    WindowManager.LayoutParams localLayoutParams = getWindow().getAttributes();
    localLayoutParams.width = -1;
    localLayoutParams.height = -1;
    getWindow().setAttributes(localLayoutParams);
    getWindow().getDecorView().setPadding(0, 0, 0, 0);
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
      return;
    case 2131099895:
      com.hsc.yalebao.base.MainActivity.mLinList[0].performClick();
      dismiss();
      return;
    case 2131099898:
      com.hsc.yalebao.base.MainActivity.mLinList[1].performClick();
      dismiss();
      return;
    case 2131099901:
      com.hsc.yalebao.base.MainActivity.mLinList[2].performClick();
      dismiss();
      return;
    case 2131099906:
    }
    com.hsc.yalebao.base.MainActivity.mLinList[3].performClick();
    dismiss();
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
  }

  public void setDialogSize(float paramFloat1, float paramFloat2, int paramInt)
  {
  }

  public void setIcon(int paramInt)
  {
  }

  public void setMessage(String paramString)
  {
    this.tv_tishi.setText(paramString);
  }

  public void setOnButtonGroupClick(MyDialogListener paramMyDialogListener1, MyDialogListener paramMyDialogListener2)
  {
    this.cancleListener = paramMyDialogListener1;
    this.okListener = paramMyDialogListener2;
  }

  public void setOnButtonGroupClick(String paramString1, MyDialogListener paramMyDialogListener1, String paramString2, MyDialogListener paramMyDialogListener2)
  {
    this.cancleListener = paramMyDialogListener1;
    this.okListener = paramMyDialogListener2;
  }

  public void setOnDefaultButtonClick(MyDialogListener paramMyDialogListener)
  {
    this.defaultListener = paramMyDialogListener;
  }

  public void setOnDefaultButtonClick(String paramString, MyDialogListener paramMyDialogListener)
  {
    this.defaultListener = paramMyDialogListener;
  }

  public void setOnDismissListener(DialogInterface.OnDismissListener paramOnDismissListener)
  {
    super.setOnDismissListener(paramOnDismissListener);
  }

  public void setTitle(String paramString)
  {
    this.tv_title.setText(paramString);
  }

  public static abstract interface MyDialogListener
  {
    public abstract void onClick();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.weight.ChongzhitishiDialog
 * JD-Core Version:    0.6.2
 */